<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/1/23 0023
 * Time: 17:43
 */
namespace app\common\lib;
class Util
{
    /**
     * api 输出格式
     * @param $status
     * @param string $message
     * @param array $data
     */
    public static function show($status, $message='', $data=[])
    {
        $result = [
            'status' => $status,
            'message' => $message,
            'data' => $data
        ];

        return json_encode($result);
    }

}





